﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace SilverTile
{
    public abstract class Renderable : IUpdateable
    {

        protected IFrame _frame;

        public Renderable(int width, int height)
        {
            _frame = new Frame(width, height);
        }

        public Renderable(IFrame frame)
        {
            _frame = frame;
        }
        public int Width
        {
            get { return _frame.Width; }
        }

        public int Height
        {
            get { return _frame.Height; }
        }

        public virtual void Update(TimeSpan elapsedTime) { }

    }
}
